package com.stedu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Borrow {
    /**
     * 主键
     */
    private Integer boid;
    /**
     * 用户ID
     */
    private Integer aid;
    /**
     * 书籍ID
     */
    private Integer bid;
    /**
     * 借出时间
     */
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date boout;
    /**
     * 归还时间
     */
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date bostill;
    /**
     * 押金
     */
    private BigDecimal bodeposit;
    /**
     * 借阅状态
     */
    private Integer bostate;

    private Admin admin;

    private Book book;
}
